<template>
  <div>
  <h4>接收到的params参数是{{$route.params.id}}</h4>
  <h4>接收到的query参数是{{$route.query.id}}</h4>
  </div>
  
</template>

<script>
export default {
  name: "messageDetail",
  mounted(){
    console.log(this.$route)
  }
};
</script>

<style scoped>
</style>